

/**
 *
 * 错误信息code码
 */
module.exports = {
  success: 200,
  TOKEN_ERROR: 401,
  systemError: 500,
  paramsError: 400,
  notFound: 404,
  FREQUENT_REQUEST: 413,
  USER: {
    NOT_FOUND: 1001,
    PWD_IS_ERROR: 1002,
    APPLY_IS_VERIFY: 1100,
    APPLY_IS_ACCESS: 1101,
    NOT_JIAO_LIAN: 1102,
    ACCOUNT_ERROR: 1103,
    ACCOUNT_NOT_ENOUGH: 1104,
    NOT_JUSER_INFO: 1105,
    HAS_END_SIGN: 1106
  },
  COURSE: {
    NOT_FOUND: 1200,
    NOT_FOUND_DETAIL: 1210,
    NOT_END_NULL: 1220,
    CAN_NOT_END: 1221,
    ONLY_ONE_COURSE: 1222,
    START_TIME_LESS: 1223,
    SIGN_TIME_IS_BIG: 1224,
    CAMP_IS_START: 1225,
    COURSE_CAN_NOT_CANCEL: 1226,
    NOT_MAKE_CAMP: 1227,
    NOT_THIS_STUDENT: 1230,
    NOT_BUY: 1231,
    MUST_CHOOSE_CLASS: 1232,
    HAS_SUB: 1233,
    CAN_NOT_SUB: 1234,
    NOT_CLASS: 1235,
    HAS_END_COURSE: 1236,
    HAS_END_COURSE_CLASS: 1237,
    CHOOSE_END_CLASS: 1238,
    ONLY_CAN_BUY_ONE: 1239,
    CAN_NOT_MODIFY: 1240,
    CAN_NOT_REMOVE: 1241,
    COURSE_HAS_TICKET: 1250,
    TIME_END: 1251,
    NOT_BUY_COURSE: 1252,
    CAN_NOT_REFUND: 1253,
    COURSE_USER_CONFIRM: 1254,
    COURSE_ACCOUNT_ERROR: 1254,
    MAX_NUM_LIMIT:1260,
    HAS_BUY_CAN_NOT_MODIFY: 1261,
    CAN_NOT_SETTLE: 1262,
    NOT_PHONE_NOT_BUY: 1263
  },
  wxchat: {
    getOpenIdError: 1300,
    RES_ERROR: 1301,
    WITH_DRAW_ONLY_ONE: 1302
  },
  common: {
    UPDATE_MUST_HAVE_ONE: 2000
  },
  ORDER: {
    NOT_FOUND: 2500,
    HAS_BUY: 2501,
    CAN_NOT_PAY: 2502
  },
  APPLY: {
    NOT_FOUND: 2700,
    HAS_APPLY: 2701
  },
  OTHER: {
    NOT_BANK: 3001
  }
};
